const mongooes = require('mongoose')

module.exports = mongooes.model('goods', mongooes.Schema({
    name: String,
    desc: String,
    img: String,
    price: Number,
    cate: String,
    hot: { type: Boolean, default: false },
    rank: { type: Number, default: 0 },
    create_time: { type: Number, default: Date.now() },
    status: { type: Number, default: 1 }, // 1 正常上架 0 下架 -1 已删除
    checked: { type: Number, default: 0 } // 1 审核通过 0 未审核 -1 已驳回
}))